<?php
namespace Admin\Models\read;

class ArticleStatistics extends BaseRead
{

    public $article_id;
    public $article_title;
    public $channel_id;
    public $channel_name;
    public $read_count;
    public $comment_count;
    public $share_count;
    public $collect_count;

    /**
     * Initialize method for model.
     */
    public function initialize()
    {
        parent::initialize();
        $this->setConnectionService(parent::Service);
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return parent::getTableName('article_statistics');
    }

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return ArticleStatistics[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return ArticleStatistics
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }


}
